/**
 * 项目示例-列表综合搜索
 * Date 2023-5-25 09:33:56
 * {
 *   label: '', 筛选项名称
 *   prop: '', 筛选项字段
 *   type: '', 组件类型（'input' | 'select' | 'inputNumber' | 'cascader' | 'datePicker' | 'timePicker' | 'timeSelect' | 'treeSelect' | 'checkbox' | 'radio'）
 *   defaultValue: '', 筛选项默认值（不写默认undefined）
 *   inputProps: {}, 过滤组件属性，跟`ElementPlus`对应组件的`#Attributes`相同
 *   events: {} 仅支持change事件
 * }
 */
import type { FilterItem } from '@/components/FilterBar/types'
export const addEquipmentOptions: FilterItem[] = [
  {
    label: '设备编号：',
    prop: 'deviceID',
    type: 'input',
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: '请输入设备编号'
    }
  },
  {
    label: '设备类型：',
    prop: 'deviceType',
    type: 'select',
    span: 12,
    remark: 'true',
    inputProps: {
      options: []
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  },
  {
    label: '设备型号：',
    prop: 'deviceModel',
    type: 'input',
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: '请输入设备型号'
    }
  },
  {
    label: '设备名称：',
    prop: 'deviceName',
    type: 'input',
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: '请输入设备名称'
    }
  },
  {
    label: '使用部门：',
    prop: 'useDepartment',
    type: 'treeSelect',
    multiple: true,
    span: 12,
    inputProps: {
      'default-expand-all': true,
      data: []
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  },
  {
    label: '归属单位：',
    prop: 'subsidiary',
    type: 'select',
    span: 12,
    inputProps: {
      options: []
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  },
  {
    label: '位置：',
    prop: 'place',
    type: 'input',
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: '请输入位置'
    }
  },
  {
    label: '地图坐标：',
    prop: 'position',
    type: 'input',
    isDisabled: true,
    span: 12,
    icon:"Location",
    inputProps: {
      clearable: true,
      placeholder: '请输入地图坐标'
    }
  },
  {
    label: '区域：',
    prop: 'area',
    type: 'input',
    span: 12,
    isDisabled: true,
    inputProps: {
      clearable: true,
      placeholder: '根据地图坐标回显'
    }
  }
]
export const mapOptions: FilterItem[] = [
  {
    label: '区域：', // 后续由接口获取下拉数据
    prop: 'area',
    type: 'checkbox',
    span: 10,
    defaultValue: '',
    inputProps: {
      options: []
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  },
  {
    label: '充电桩编号：',
    prop: 'chargingPileNumber',
    type: 'input',
    span: 5,
    inputProps: {
      clearable: true,
      placeholder: '请输入充电桩编号'
    }
  },
  {
    label: '航站楼：', // 后续由接口获取下拉数据
    prop: 'terminal',
    type: 'checkbox',
    span: 6,
    defaultValue: '',
    inputProps: {
      options: []
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  },
]
export const testOptions: FilterItem[] = [
  {
    label: '', // 后续由接口获取下拉数据
    prop: 'button',
    type: 'radioButton',
    span: 14,
    defaultValue: '',
    inputProps: {
      options: []
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  }
]
export const buttonOptions: FilterItem[] = [
  {
    label: '', // 后续由接口获取下拉数据
    prop: 'button',
    type: 'radioButton',
    span: 14,
    defaultValue: '',
    inputProps: {
      options: [
        { label: '进港', value: 1 },
        { label: '出港', value: 2 }
      ]
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  }
]
export const demoOptions: FilterItem[] = [
  {
    label: '区域1：', // 后续由接口获取下拉数据
    prop: 'area1',
    type: 'radio',
    span: 14,
    defaultValue: '',
    inputProps: {
      options: []
    },
    events: {
      change: (value: any, evt: any) => {}
    }
  },
  {
    label: '服务人员：',
    prop: 'problem',
    type: 'input',
    span: 5,
    inputProps: {
      clearable: true,
      placeholder: '请输入问题类型'
    }
  },
  {
    label: '记 录 人 ：',
    prop: 'problem',
    type: 'input',
    span: 5,
    inputProps: {
      clearable: true,
      placeholder: '请输入问题类型'
    }
  },
  {
    label: '问询类型：', // 后续由接口获取下拉数据
    prop: 'inquiryType',
    type: 'select',
    multiple: true,
    span: 14,
    defaultValue: '',
    inputProps: {
      options: [
        { label: '全部 24', value: 1 },
        { label: '值机、客票类 9', value: 2 },
        { label: '安检类 10', value: 3 }
      ],
      placeholder: '请选择问询类型'
    }
  },
  {
    label: '服务时间：',
    prop: 'date1',
    type: 'datePicker',
    span: 10,
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'range-separator': '至'
    }
  },
  {
    label: '服务时间2：',
    prop: 'date1',
    type: 'datePicker',
    span: 10,
    defaultValue: [],
    inputProps: {
      type: 'datetimerange',
      format: 'YYYY-MM-DD HH:mm',
      'value-format': 'YYYY-MM-DD HH:mm',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'range-separator': '至'
    }
  }
]
export const exampleOptions: FilterItem[] = [
  {
    label: '设备类型：', // 后续由接口获取下拉数据
    prop: 'device',
    type: 'select',
    span: 5,
    defaultValue: '',
    inputProps: {
      options: [
        { label: '全部', value: '' }
      ]
    }
  },
  {
    label: '问题类型：',
    prop: 'problem',
    type: 'input',
    span: 5,
    inputProps: {
      clearable: true,
      placeholder: '请输入问题类型'
    }
  },
  {
    label: '所属单位：',
    prop: 'tree',
    type: 'treeSelect',
    span: 5,
    inputProps: {
      'default-expand-all': true,
      data: [{
        value: '1',
        label: 'Level one 1',
        children: [
          {
            value: '1-1',
            label: 'Level two 1-1'
          }
        ]
      }]
    }
  },
  {
    label: '时间：',
    prop: 'date1',
    type: 'datePicker',
    span: 8,
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD hh:mm',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'range-separator': '至'
    }
  }
]
export const dialogOptions: FilterItem[] = [
  {
    label: '设备类型：', // 后续由接口获取下拉数据
    prop: 'device',
    type: 'select',
    span: 24,
    defaultValue: '',
    inputProps: {
      options: [
        { label: '全部', value: '' }
      ]
    }
  },
  {
    label: '问题类型：',
    prop: 'problem',
    type: 'input',
    span: 24,
    inputProps: {
      clearable: true,
      placeholder: '请输入问题类型'
    }
  },
  {
    label: '所属单位：',
    prop: 'tree',
    type: 'treeSelect',
    span: 24,
    inputProps: {
      'default-expand-all': true,
      data: [{
        value: '1',
        label: 'Level one 1',
        children: [
          {
            value: '1-1',
            label: 'Level two 1-1'
          }
        ]
      }]
    }
  }
]
export const dialogEditOptions: FilterItem[] = [
  {
    label: '设备类型：', // 后续由接口获取下拉数据
    prop: 'project',
    type: 'input',
    span: 24,
    isDisabled: true,
    defaultValue: '',
    inputProps: {
      placeholder: '请输入设备类型'
    }
  },
  {
    label: '问题类型：',
    prop: 'problemType',
    type: 'input',
    span: 24,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入问题类型'
    }
  },
  {
    label: '所属单位：',
    prop: 'organ',
    type: 'treeSelect',
    span: 24,
    isDisabled: true,
    inputProps: {
      clearable: true,
      placeholder: '请输入所属单位'
    }
  },
  {
    label: ' 创 建 人 ：',
    prop: 'creator',
    type: 'input',
    span: 24,
    isDisabled: true,
    inputProps: {
      clearable: true,
      placeholder: '请输入创建人'
    }
  },
  {
    label: '创建时间：',
    prop: 'createTime',
    type: 'input',
    span: 24,
    isDisabled: true,
    inputProps: {
      clearable: true,
      placeholder: '请输入创建时间'
    }
  }
]
